//
//  AFHTTPSessionManager+Manager.m
//  BuDeJie19
//
//  Created by hjj on 2016/12/3.
//  Copyright © 2016年 hjjuny. All rights reserved.
//
#import "AFHTTPSessionManager+Manager.h"

@implementation AFHTTPSessionManager (Manager)
+ (instancetype)xmg_manager
{
    AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager];
    // [AFJSONResponseSerializer serializer] : JSON
    // [AFOnoResponseSerializer XMLResponseSerializer] ： XML
    AFJSONResponseSerializer *response = [AFJSONResponseSerializer serializer];
    response.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html",nil];
    mgr.responseSerializer = response;
    
    return mgr;
}
@end
